#include "EnterSceneLayer.h"
#include "LoginScene.h"

Enter_Scene_Layer::Enter_Scene_Layer()
{
	m_Enter_Timer = 10;
}

Enter_Scene_Layer::~Enter_Scene_Layer()
{

}

bool Enter_Scene_Layer::init()
{
	bool bRef = false;
	do
	{
		CC_BREAK_IF(!CCLayer::init());
		CCSize VisableSize = CCDirector::sharedDirector()->getVisibleSize();
		CCSprite * Logo = CCSprite::create("ui/logo.png");
		Logo->setPosition(ccp(VisableSize.width / 2, VisableSize.height / 2));
		addChild(Logo);
		scheduleOnce(schedule_selector(Enter_Scene_Layer::GoToNextScene), 1.0);
		bRef = true;

	} while (0);

	return bRef;
}

void Enter_Scene_Layer::GoToNextScene(float second)
{
	LoginScene * _LoginScene = LoginScene::create();
	CCDirector::sharedDirector()->replaceScene(_LoginScene);

}